#pragma once
#include "Object.h"
#include "GL/glew.h"
#include "GL/freeglut.h"
#include <vector> 

using std::vector;

class Triangle : public Object
{
public:
	Triangle();
	Triangle(const vector<GLfloat> &v1, const vector<GLfloat> &v2, const vector<GLfloat> &v3);
	~Triangle();
	void draw() const;
	void undraw() const;
	BBox getBBox() const;
	Vector3f getCentroid() const;

private:
	GLfloat VN[3];

	GLfloat SV1[3];
	GLfloat SV2[3];
	GLfloat SV3[3];

	BBox bbox;
	Vector3f centroid;
};

